import 'package:flutter/material.dart';
import 'package:flutter_vant/main.dart';

class VanTab extends HookWidget {
  const VanTab({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Ink(
      color: Colors.white,
      child: InkWell(
          splashColor: Colors.red,
          onTap: () {
            print('点击');
          },
          child: Frame(
            styles: {
              CssRule.width: 100,
              CssRule.height: 100,
              // CssRule.backgroundColor: 'white'
            },
            children: [InkWell(child: TextView('child'))],
          )),
    );
    return Ink(
      color: Colors.white, //使用Ink包裹，在这里设置颜色
      child: InkWell(
        // splashColor: Colors.red,
        child: Frame(
            styles: {CssRule.width: 100, CssRule.height: 100},
            children: [TextView('child')]),
        onTap: () {
          print('点击');
        },
      ),
    );
  }
}
